//
//  YDWebView.h
//  YunDongGym
//
//  Created by lqq on 2018/6/8.
//  Copyright © 2018年 lqq. All rights reserved.
//

#import <WebKit/WebKit.h>
#import <WebViewJavascriptBridge/WKWebViewJavascriptBridge.h>


//H5调客户端类型
typedef NS_ENUM(NSInteger, HtmlRegistHandleType) {
    HtmlRegistHandleType_SetTitle = 1,//设置标题
    HtmlRegistHandleType_OpenH5 = 2,//纯H5
    HtmlRegistHandleType_GetUserInfo = 4,//通知客户端传用户信息
};
//客户端调H5类型
typedef NS_ENUM(NSInteger, HtmlCallHandleType) {
    HtmlCallHandleType_SetUserInfo = 0,//客户端上传用户信息

};

@class YDWebView;
@protocol YDWebViewDelegate <NSObject>
@optional
- (void)setControllerTitle:(NSString *)title;
-(void)webView:(YDWebView *)webView contentSizeDidChanged:(CGSize)size;
@end



@interface YDWebView : WKWebView
@property (nonatomic, weak) id<YDWebViewDelegate> YDWebDelegate;
@property(nonatomic ,strong) WKWebViewJavascriptBridge *bridge;
@end
